package org.yys.seata.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 账户金额锁定表
 * @TableName t_account_freeze
 */
@TableName(value ="t_account_freeze")
@Data
public class AccountFreezeEntity implements Serializable {
    /**
     * 
     */
    @TableId
    private String xid;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 冻结金额
     */
    private Integer freezeMoney;

    /**
     * 事务状态，0:try，1:confirm，2:cancel
     */
    private Integer state;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}